package com.ts.enterprise.enums;

public enum AdminUserStatus {
    ACTIVED(1, "激活"),
    NOT_ACTIVED(0, "未激活");
    private Integer code;
    private String message;
    AdminUserStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public static AdminUserStatus getCode(int code) {
        AdminUserStatus[] auss = AdminUserStatus.values();
        for (AdminUserStatus aus : auss) {
            if (aus.getCode() == code) {
                return aus;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
